home *** CD-ROM | disk | FTP | other *** search
/ Chip 2007 January, February, March & April / Chip-Cover-CD-2007-02.iso / Pakiet bezpieczenstwa / mini Pentoo LiveCD 2006.1 / mpentoo-2006.1.iso / livecd.squashfs / usr / lib / mozilla-firefox / include / necko / nsIHttpChannelInternal.h < prev    next >
C/C++ Source or Header  |  2006-05-08  |  6KB  |  175 lines

  1. /*
  2.  * DO NOT EDIT.  THIS FILE IS GENERATED FROM nsIHttpChannelInternal.idl
  3.  */
  4.  
  5. #ifndef __gen_nsIHttpChannelInternal_h__
  6. #define __gen_nsIHttpChannelInternal_h__
  7.  
  8.  
  9. #ifndef __gen_nsISupports_h__
  10. #include "nsISupports.h"
  11. #endif
  12.  
  13. /* For IDL files that don't want to include root IDL files. */
  14. #ifndef NS_NO_VTABLE
  15. #define NS_NO_VTABLE
  16. #endif
  17. class nsIURI; /* forward declaration */
  18.  
  19. class nsIProxyInfo; /* forward declaration */
  20.  
  21.  
  22. /* starting interface:    nsIHttpChannelInternal */
  23. #define NS_IHTTPCHANNELINTERNAL_IID_STR "f3764874-ed7e-4873-883c-11d67a4e3638"
  24.  
  25. #define NS_IHTTPCHANNELINTERNAL_IID \
  26.   {0xf3764874, 0xed7e, 0x4873, \
  27.     { 0x88, 0x3c, 0x11, 0xd6, 0x7a, 0x4e, 0x36, 0x38 }}
  28.  
  29. /** 
  30.  * Dumping ground for http.  This interface will never be frozen.  If you are 
  31.  * using any feature exposed by this interface, be aware that this interface 
  32.  * will change and you will be broken.  You have been warned.
  33.  */
  34. class NS_NO_VTABLE nsIHttpChannelInternal : public nsISupports {
  35.  public: 
  36.  
  37.   NS_DEFINE_STATIC_IID_ACCESSOR(NS_IHTTPCHANNELINTERNAL_IID)
  38.  
  39.   /**
  40.      * An http channel can own a reference to the document URI
  41.      */
  42.   /* attribute nsIURI documentURI; */
  43.   NS_IMETHOD GetDocumentURI(nsIURI * *aDocumentURI) = 0;
  44.   NS_IMETHOD SetDocumentURI(nsIURI * aDocumentURI) = 0;
  45.  
  46.   /**
  47.      * Get the major/minor version numbers for the request
  48.      */
  49.   /* void getRequestVersion (out unsigned long major, out unsigned long minor); */
  50.   NS_IMETHOD GetRequestVersion(PRUint32 *major, PRUint32 *minor) = 0;
  51.  
  52.   /**
  53.      * Get the major/minor version numbers for the response
  54.      */
  55.   /* void getResponseVersion (out unsigned long major, out unsigned long minor); */
  56.   NS_IMETHOD GetResponseVersion(PRUint32 *major, PRUint32 *minor) = 0;
  57.  
  58.   /**
  59.      * Helper method to set a cookie with a consumer-provided
  60.      * cookie header, _but_ using the channel's other information
  61.      * (URI's, prompters, date headers etc).
  62.      *
  63.      * @param aCookieHeader
  64.      *        The cookie header to be parsed.
  65.      */
  66.   /* void setCookie (in string aCookieHeader); */
  67.   NS_IMETHOD SetCookie(const char *aCookieHeader) = 0;
  68.  
  69.   /**
  70.      * Get the proxy info in use by the channel.
  71.      */
  72.   /* readonly attribute nsIProxyInfo proxyInfo; */
  73.   NS_IMETHOD GetProxyInfo(nsIProxyInfo * *aProxyInfo) = 0;
  74.  
  75. };
  76.  
  77. /* Use this macro when declaring classes that implement this interface. */
  78. #define NS_DECL_NSIHTTPCHANNELINTERNAL \
  79.   NS_IMETHOD GetDocumentURI(nsIURI * *aDocumentURI); \
  80.   NS_IMETHOD SetDocumentURI(nsIURI * aDocumentURI); \
  81.   NS_IMETHOD GetRequestVersion(PRUint32 *major, PRUint32 *minor); \
  82.   NS_IMETHOD GetResponseVersion(PRUint32 *major, PRUint32 *minor); \
  83.   NS_IMETHOD SetCookie(const char *aCookieHeader); \
  84.   NS_IMETHOD GetProxyInfo(nsIProxyInfo * *aProxyInfo); 
  85.  
  86. /* Use this macro to declare functions that forward the behavior of this interface to another object. */
  87. #define NS_FORWARD_NSIHTTPCHANNELINTERNAL(_to) \
  88.   NS_IMETHOD GetDocumentURI(nsIURI * *aDocumentURI) { return _to GetDocumentURI(aDocumentURI); } \
  89.   NS_IMETHOD SetDocumentURI(nsIURI * aDocumentURI) { return _to SetDocumentURI(aDocumentURI); } \
  90.   NS_IMETHOD GetRequestVersion(PRUint32 *major, PRUint32 *minor) { return _to GetRequestVersion(major, minor); } \
  91.   NS_IMETHOD GetResponseVersion(PRUint32 *major, PRUint32 *minor) { return _to GetResponseVersion(major, minor); } \
  92.   NS_IMETHOD SetCookie(const char *aCookieHeader) { return _to SetCookie(aCookieHeader); } \
  93.   NS_IMETHOD GetProxyInfo(nsIProxyInfo * *aProxyInfo) { return _to GetProxyInfo(aProxyInfo); } 
  94.  
  95. /* Use this macro to declare functions that forward the behavior of this interface to another object in a safe way. */
  96. #define NS_FORWARD_SAFE_NSIHTTPCHANNELINTERNAL(_to) \
  97.   NS_IMETHOD GetDocumentURI(nsIURI * *aDocumentURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetDocumentURI(aDocumentURI); } \
  98.   NS_IMETHOD SetDocumentURI(nsIURI * aDocumentURI) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetDocumentURI(aDocumentURI); } \
  99.   NS_IMETHOD GetRequestVersion(PRUint32 *major, PRUint32 *minor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetRequestVersion(major, minor); } \
  100.   NS_IMETHOD GetResponseVersion(PRUint32 *major, PRUint32 *minor) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetResponseVersion(major, minor); } \
  101.   NS_IMETHOD SetCookie(const char *aCookieHeader) { return !_to ? NS_ERROR_NULL_POINTER : _to->SetCookie(aCookieHeader); } \
  102.   NS_IMETHOD GetProxyInfo(nsIProxyInfo * *aProxyInfo) { return !_to ? NS_ERROR_NULL_POINTER : _to->GetProxyInfo(aProxyInfo); } 
  103.  
  104. #if 0
  105. /* Use the code below as a template for the implementation class for this interface. */
  106.  
  107. /* Header file */
  108. class nsHttpChannelInternal : public nsIHttpChannelInternal
  109. {
  110. public:
  111.   NS_DECL_ISUPPORTS
  112.   NS_DECL_NSIHTTPCHANNELINTERNAL
  113.  
  114.   nsHttpChannelInternal();
  115.  
  116. private:
  117.   ~nsHttpChannelInternal();
  118.  
  119. protected:
  120.   /* additional members */
  121. };
  122.  
  123. /* Implementation file */
  124. NS_IMPL_ISUPPORTS1(nsHttpChannelInternal, nsIHttpChannelInternal)
  125.  
  126. nsHttpChannelInternal::nsHttpChannelInternal()
  127. {
  128.   /* member initializers and constructor code */
  129. }
  130.  
  131. nsHttpChannelInternal::~nsHttpChannelInternal()
  132. {
  133.   /* destructor code */
  134. }
  135.  
  136. /* attribute nsIURI documentURI; */
  137. NS_IMETHODIMP nsHttpChannelInternal::GetDocumentURI(nsIURI * *aDocumentURI)
  138. {
  139.     return NS_ERROR_NOT_IMPLEMENTED;
  140. }
  141. NS_IMETHODIMP nsHttpChannelInternal::SetDocumentURI(nsIURI * aDocumentURI)
  142. {
  143.     return NS_ERROR_NOT_IMPLEMENTED;
  144. }
  145.  
  146. /* void getRequestVersion (out unsigned long major, out unsigned long minor); */
  147. NS_IMETHODIMP nsHttpChannelInternal::GetRequestVersion(PRUint32 *major, PRUint32 *minor)
  148. {
  149.     return NS_ERROR_NOT_IMPLEMENTED;
  150. }
  151.  
  152. /* void getResponseVersion (out unsigned long major, out unsigned long minor); */
  153. NS_IMETHODIMP nsHttpChannelInternal::GetResponseVersion(PRUint32 *major, PRUint32 *minor)
  154. {
  155.     return NS_ERROR_NOT_IMPLEMENTED;
  156. }
  157.  
  158. /* void setCookie (in string aCookieHeader); */
  159. NS_IMETHODIMP nsHttpChannelInternal::SetCookie(const char *aCookieHeader)
  160. {
  161.     return NS_ERROR_NOT_IMPLEMENTED;
  162. }
  163.  
  164. /* readonly attribute nsIProxyInfo proxyInfo; */
  165. NS_IMETHODIMP nsHttpChannelInternal::GetProxyInfo(nsIProxyInfo * *aProxyInfo)
  166. {
  167.     return NS_ERROR_NOT_IMPLEMENTED;
  168. }
  169.  
  170. /* End of implementation class template. */
  171. #endif
  172.  
  173.  
  174. #endif /* __gen_nsIHttpChannelInternal_h__ */
  175.